//
//  LoginPasswordValidator.m
//  liangyi
//
//  Created by 张水 on 16/12/19.
//  Copyright © 2016年 yswh. All rights reserved.
//

#import "LoginPasswordValidator.h"

@implementation LoginPasswordValidator

- (BOOL)validateInput:(UITextField *)input {
    
    if (![CommonMethod checkUserInput:input.text]) {
        self.errorMessage = @"密码不能为空";
    }else if (![CommonMethod checkPwdIsRight:input.text]){
        self.errorMessage = @"系统检测到该账号存在被盗风险,请点击忘记密码进行密码重置!";
    }else {
        self.errorMessage = nil;
    }
    
    return self.errorMessage == nil ? YES : NO;
}


@end
